package com.itheima;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @auther Macrydy
 * @date 2020/7/3 14:36
 */
public class IODemo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("a.txt");
        file.createNewFile();
        FileOutputStream fos = new FileOutputStream(new File("a.txt"),true);
        String s = "疑是地上霜";
        String n = "\r\n";
        fos.write(n.getBytes());
        fos.write(s.getBytes());
        fos.close();

    }
}
